﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Beauty.BLL;
using Beauty.Model;
using WebUI.Models;
namespace WebUI.Controllers
{
    public class AlbumsController : Controller
    {
        // GET: AlbumList
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult process(string pinyin)
        {
            UtilWebService util = new UtilWebService();
            //加载类别
            picclassBLL classes = new picclassBLL();
            List<picclass> list = util.GetAllAlbumClass();
            ViewBag.classes = list;

            //加载套图
            //int classId, pageIndex, pageSize = 2, pageCount;
            string selected;

            picalbumBLL albumBll = new picalbumBLL();
            List<picalbum> albums = util.GetAlbumsByAction(pinyin, list, out selected, false, 0);



            ViewData["albums"] = albums;
            ViewData["selected"] = selected;
            return View();
        }

     

    }

}